{{ 5 * '{#-'|length }}
{{ '{{-'|length * 5 + '{%-'|length }}

Trim on control tag:
{% for i in range(1, 9) -%}
	{{ i }}
{%- endfor %}


Trim on output tag:
{% for i in range(1, 9) %}
	{{- i -}}
{% endfor %}


Trim comments:
      
{#- Invisible -#}
       
After the comment.

Trim leading space:
{% if leading %}

		{{- leading }}
{% endif %}

{%- if leading %}
	{{- leading }}

{%- endif %}


Trim trailing space:
{% if trailing -%}          
	{{ trailing -}}

{% endif -%}

Combined:

{%- if both -%}
<ul>
	<li>    {{- both -}}   </li>
</ul>

{%- endif -%}

end
